package org.example.work1022.w3;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext bean = new ClassPathXmlApplicationContext("1022.xml");
        School s = bean.getBean("school",School.class);
        s.print();
    }
}
